BACK
MENU

Multiplayer


Alan Hope, 23 May 2023

Short-polling multiplayer game messaging.

Status Format

flowchart TD A[2s chained
Status request] B[User-generated event] C[Reads file
calc gametime] D[Reads server-file eventlist,
Appends event,
Saves] E[Eventlist
& Gametime] H[Update game] I["worker.js
Patho-physiology
worker (thread)"] A -->|AJAX| C B -->|AJAX| D D --> E C -->|Response| H E --> C H --> I I --> H subgraph CLIENT JS B H A I end subgraph SERVER PHP C D end subgraph SERVER FILE E end